﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace PMQLNhaHang
{
    public partial class fmLogin : Form
    {
        //public NhanVien nv;
        //public delegate void GuiNhanVien(NhanVien nvv);

        public fmLogin()
        {
            InitializeComponent();
        }

        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            //if (KiemTraThongTinDangNhap()!=null)
            //{
            //    FMain fmMain = new FMain();
            //    GuiNhanVien gui = new GuiNhanVien(fmMain.NhanNhanVien);
            //    gui(nv);
            //    fmMain.Show();
            //    this.Hide();
            //}
            //else
            //{
            //    lbError.Text = "Đăng Nhập Không Thành Công";
            //}
        }

        //private NhanVien KiemTraThongTinDangNhap()
        //{
        //    //nv = new NhanVien();
        //    //nv.CMND = "12345";
        //    //nv.HoTen = "Trần Hoàng Linh";
        //    //nv.Loai = 1;
        //    //return nv;
        //}

        private void btnHuyBo_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void fmLogin_Load(object sender, EventArgs e)
        {

        }

        private void fmLogin_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }
    }
}
